package com.example.poemtest.index.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(
        tableName = "PoetryTable"
)
public class PoetryBeanTest {
    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "index")
    private int index = 0;
    @ColumnInfo(name = "name")
    private String name = "";
    @ColumnInfo(name = "title")
    private String title = "";
    @ColumnInfo(name = "content")
    private String content = "";

    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIndex() {
        return this.index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
